Repeat command N times every S seconds.
